/**
 * 
 */
package com.eis.persist.model.bizsystem;

import java.io.Serializable;
import java.util.Map;

import com.eis.persist.model.base.BasePersist;

/**
 * @author panwei
 *
 */
public class PersistConnectorConfigure extends BasePersist implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2361136816367835012L;
	
	private int id;
	private String name;
	private String configXml;
	private PersistBizSystem bizSystem;
	
	public PersistConnectorConfigure() {
		super();
	}
	
	public PersistConnectorConfigure(Map<String, Object> dataRecord) {
		super(dataRecord);
		this.id = (Integer) dataRecord.get("id");
		this.name = (String) dataRecord.get("name");
		this.configXml = (String) dataRecord.get("configXml");
		PersistBizSystem bizSystem = new PersistBizSystem();
		bizSystem.setId((Integer) dataRecord.get("bizsysId"));
		this.bizSystem = bizSystem;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getConfigXml() {
		return configXml;
	}
	public void setConfigXml(String configXml) {
		this.configXml = configXml;
	}
	public PersistBizSystem getBizSystem() {
		return bizSystem;
	}
	public void setBizSystem(PersistBizSystem bizSystem) {
		this.bizSystem = bizSystem;
	}
}
